package com.analyse.stock.service;

import com.analyse.stock.form.PickStockQueryForm;
import com.analyse.stock.model.StockCoreInfoModel;
import com.analyse.stock.model.StockInfoModel;
import com.analyse.stock.vo.PickStockVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

public interface IStockInfo extends IService<StockInfoModel> {
    StockInfoModel getStockInfo(String stockCode);
    List<StockInfoModel> getStockList(Set<String> stockCodes);
    Integer pullStockList(String countryCode);

    Integer update(String stockCodes);

    List<PickStockVO> pickStock(PickStockQueryForm queryForm);

    /**
     * 每日 15.30分后 自动选股
     * 从每天板块净流入资金前5名中选出
     **/
    List<StockInfoModel> scanStockByBoardFund(Integer lastDay);

    /**
     * 实时交易中，拉取最新的股价，涨跌幅信息
     **/
    StockCoreInfoModel pullLatestStockInfo(String stockCode);
}
